﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using Microsoft.Extensions.Configuration;
namespace Library.HttpHelp
{
    public class HostConfig
    {
        private static IConfigurationBuilder _configurationBuilder = new ConfigurationBuilder().SetBasePath(Directory.GetCurrentDirectory()).AddJsonFile("appsettings.Development.json");
        private static readonly IConfigurationRoot _config = _configurationBuilder.Build();
        public const string UserAgent = "HttpHelper";
        public static string OauthHost = _config.GetSection("Logging").GetSection("LogLevel").GetSection("OauthHost").Value;
        public static string LibHost = _config.GetSection("Logging").GetSection("LogLevel").GetSection("LibHost").Value;
        public static string WebHost = _config.GetSection("Logging").GetSection("LogLevel").GetSection("WebHost").Value;
    }
}